double acos(double x)
The acos() function calculates the arc cosine of x; that is the value whose cosine is x. If x falls outside the range -1 to 1, acos() fails and errno is set.
The acos() function returns the arc cosine in radians and the value is mathematically defined to be between 0 and PI (inclusive).
double asin(double x)
The asin() function calculates the arc sine of x; that is the value whose sine is x. If x falls outside the range -1 to 1, asin() fails and errno is set.
The asin() function returns the arc sine in radians and the value is mathematically defined to be between -PI/2 and PI/2 (inclusive).
double atan(double x)
The atan() function calculates the arc tangent of x; that is the value whose tangent is x.
The atan() function returns the arc tangent in radians and the value is mathematically defined to be between -PI/2 and PI/2 (inclusive).
double atan2(double y, double x)
The atan2() function calculates the arc tangent of the two variables x and y. It is similar to calculating the arc tangent of y / x, except that the signs of both arguments are used to determine the quadrant of the result.
The atan2() function returns the result in radians, which is between -PI and PI (inclusive).
double ceil(double x)
These functions round x up to the nearest integer.
The rounded integer value. If x is integral or infinite, x itself is returned.
double cos(double x)
The cos() function returns the cosine of x, where x is given in radians.
The cos() function returns a value between -1 and 1.
double cosh(double x)
The cosh() function returns the hyperbolic cosine of x, which is defined mathematically as (exp(x) + exp(-x)) / 2.
The cosh() function returns a double value.
double exp(double x)
The exp() function returns the value of e (the base of natural logarithms) raised to the power of x.
The exp() function returns a double value.
double fabs(double x)
The fabs() functions return the absolute value of the floating-point number x.
The fabs() function returns a double value.
double floor(double x)
These functions round x down to the nearest integer.
The rounded integer value. If x is integral or infinite, x itself is returned.
double fmod(double x, double y)
The fmod() function computes the remainder of dividing x by y. The return value is x - n * y, where n is the quotient of x / y, rounded towards zero to an integer.
The fmod() function returns the remainder, unless y is zero, when the function fails and errno is set.
double frexp(double x, int* exp)
The frexp() function is used to split the number x into a normalized fraction and an exponent which is stored in exp.
The frexp() function returns the normalized fraction. If the argument x is not zero, the normalized fraction is x times a power of two, and its absolute value is always in the range 1/2 (inclusive) to 1 (exclusive). If x is zero, then the normalized fraction is zero and zero is stored in exp.
double ldexp(double x, int exp)
The ldexp() function returns the result of multiplying the floating-point number x by 2 raised to the power exp.
The ldexp() function returns a double value.
double log(double x)
The log() function returns the natural logarithm of x.
The log() function can return the following errors:
double log10(double x)
The log() function returns the base-10 logarithm of x.
The log() function can return the following errors:
double modf(double x, double* iptr)
The modf() function breaks the argument x into an integral part and a fractional part, each of which has the same sign as x. The integral part is stored in iptr.
The modf() function returns the fractional part of x.
double pow(double x, double y)
The pow() function returns the value of x raised to the power of y.
The pow() function can return the following error:
double sin(double x)
The sin() function returns the sine of x, where x is given in radians.
The sin() function returns a value between -1 and 1.
double sinh(double x)
The sinh() function returns the hyperbolic sine of x, which is defined mathematically as (exp(x) - exp(-x)) / 2.
The sin() function returns a double value.
double sqrt(double x)
The sqrt() function returns the non-negative square root of x. It fails and sets errno to EDOM, if x is negative.
The sqrt() function can return the following error:
double tan(double x)
The tan() function returns the tangent of x, where x is given in radians.
The sqrt() function returns a double value.
double tanh(double x)
The tanh() function returns the hyperbolic tangent of x, which is defined mathematically as sinh(x) / cosh(x).
The tanh() function returns a double value.